# 抽象方法
from abc import ABCMeta,abstractmethod

class Pet(object,metaclass = ABCMeta):
	def __init__(self,name):
		self._name = name

	@abstractmethod
	def make_noise():
		pass


class Dog(Pet):
	def make_noise(self):
		print('%s :汪汪汪...' % self._name)


if __name__ == '__main__':
	dog = Dog('旺财')
	dog.make_noise()